package cc.openkit.admin.service.project.impl;

import cc.openkit.admin.dao.ProjectMapper;
import cc.openkit.admin.model.Project;
import cc.openkit.admin.service.common.impl.BaseServiceImpl;
import cc.openkit.admin.service.project.ProjectService;
import cc.openkit.admin.vo.ProjectVo;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class ProjectServiceImpl extends BaseServiceImpl<Project> implements ProjectService {

    private Logger log = Logger.getLogger(this.getClass());

    @Resource
    private ProjectMapper projectMapper;

    public List<ProjectVo> centerGoing(Project p) {
        return projectMapper.centerGoing(p);
    }

    public List<ProjectVo> centerFinish(Project p) {
        return projectMapper.centerFinish(p);
    }

    public ProjectVo findProjectByProId(String proId) {
        return projectMapper.findProjectByProId(proId);
    }
}
